package com.lsl.adapter_pattern.example1;

import com.lsl.adapter_pattern.example1.adapterservice.FishingBoatAdapter;

/**
 * description:
 *
 * @author: liushengli
 * data: 2023/1/9
 */
public final class App {

    private App() {
    }

    /**
     * Program entry point.
     *
     * @param args command line args
     */
    public static void main(final String[] args) {
        // The captain can only operate rowing boats but with adapter he is able to
        // use fishing boats as well
        var captain = new Captain(new FishingBoatAdapter());
        captain.row();
    }
}